package com.wuchao.service;

import com.github.pagehelper.PageInfo;
import com.wuchao.entity.Entry;

import java.util.List;

/**
 * @Author wuchao66
 * @Date 2023/9/21 15:31
 * @PackageName:com.wuchao.service
 * @ClassName: EntryServicr
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public interface EntryService {
    public List<Entry> findEntryById(int id);
    //分页功能最难的那个
//    除了分页，其他基本都和mapper一模一样
    //最难的这个
    public PageInfo<Entry> findByPage1(int categoryId, String title,Integer currentPage,Integer pageSize);
    int registerbyname(String title);

    public List<Entry> findEntryBycategoryId(int categoryId);

    int loadbyEntry(String title, String summary);

    //增加
    int addEntryByEntry(Entry entry);
}
